//
//  HeaderReusableView.m
//  CarStore
//
//  Created by 千锋 on 16/1/25.
//  Copyright (c) 2016年 1000phone. All rights reserved.
//

#import "HeaderReusableView.h"

@implementation HeaderReusableView
/** 重写init方法*/
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.SDScrollView = [[SDCycleScrollView alloc]init];
        self.SDScrollView.backgroundColor = [UIColor whiteColor];
        self.SDScrollView.autoScrollTimeInterval = 3.5;
        [self addSubview:self.SDScrollView];
    }  return self;
}
/** 设置图片网址*/
- (void)setImageUrls:(NSArray *)imageUrls
{
    self.SDScrollView.imageURLStringsGroup = imageUrls;
}
/** 视图大小和位置设置*/
- (void)layoutSubviews {
    self.SDScrollView.frame = self.bounds;
}

@end
